<?php
// +----------------------------------------------------------------------
// * Created by PhpStorm.
// +----------------------------------------------------------------------
// * Author: D H
// +----------------------------------------------------------------------
// * Date: 2017/9/12
// +----------------------------------------------------------------------
// * Time: 10:06
// +----------------------------------------------------------------------
namespace app\api\validate;

class Merchant extends Base
{
    //商家上传产品
    public static function addProduct()
    {
        return [
            'rule' => [
                'catalogID' => 'require',
                'name' => 'require',
                'model'=>'require',
                'manufacturer' => 'require',
                'origin' => 'require',
                'class' => 'require'
            ],
            'msg' => [
                'catalogID.require' => '分类不能为空',
                'name.require' => '商品名称不能为空',
                'model.require' => '商品类型不能为空',
                'manufacturer.require' => '制造商不能 为空',
                'origin.require' => '产地不能为空',
                'class.require' => '类别不能 为空'
            ]
        ];
    }
}